package com.itheima.edu.info.maneger.entry;

import com.itheima.edu.info.maneger.controller.*;
import com.itheima.edu.info.maneger.factory.SystemFactory;

import java.util.Scanner;

import static com.itheima.edu.info.maneger.factory.SystemFactory.getTeacherController;

public class InfoManagerEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("--------欢迎来到黑马信息管理系统--------");
            System.out.println("请输入您的选择: 1.学生管理  2.老师管理  3.退出");
            String choice = sc.next();
            switch (choice) {
                case "1":
                    //System.out.println("学生管理");
                    //OtherStudentController studentController = new OtherStudentController();
                    BaseStudentController studentController = SystemFactory.getStudentController();
                    studentController.start();
                    break;
                case "2":
                    //System.out.println("老师管理");
                    //OtherTeacherController teacherController = new OtherTeacherController();
                    BaseTeacherController teacherController = SystemFactory.getTeacherController();
                    teacherController.start();
                    break;
                case "3":
                    System.out.println("谢谢使用");
                    System.exit(0);
                default:
                    break;

            }
        }
    }
}
